
#ifndef _MEMBER_BICON_H_
#define _MEMBER_BICON_H_

#include <BImage>
#include <BIcon>

#define icon_member(icon)		((member_BIcon*)((BIcon*)icon)->_ptr)

namespace BWE
{
	class member_BIcon
	{
	public:
		member_BIcon(BIcon* icon);
		~member_BIcon();

		void generateImageForState(State state);

		BImage* convertRGBA(BImage* image, int state);
		BImage* convertRGB(BImage* image, int state);
		BImage* convertGray(BImage* image, int state);
		BImage* convertGrayAlpha(BImage* image, int state);

		BIcon*			boss;
		BImageHolder	images[State_Max];
	};
}

#endif
